package com.jt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

@TableName("tb_cart")
@Data
@Accessors(chain = true)
public class Cart extends BasePojo{
   @TableId(type = IdType.AUTO)     //主键自增
   private Long id; //购物车Id号
   private Long userId; //用户Id号
   private Long itemId; //商品id号
   private String itemTitle;    //商品标题
   private String itemImage;    //商品图片信息
   private Long itemPrice;
   private Integer num;
}
